package com.Practice.Practice2;

import java.net.Socket;
import java.util.Scanner;

public class Practic22 {
    public static void main(String[] args) throws  Exception{
        Socket client = new Socket("127.0.0.1", 9999);
        Scanner scanner = new Scanner(client.getInputStream());
        if (scanner.hasNext()){
            System.out.println("HelloClient"+scanner.next());
        }
        client.shutdownOutput();
        client.close();
    }
}
